package TAIC.flicker.Util;

import java.io.File;
import java.io.PrintStream;
import java.util.Scanner;

public class ValidImageList {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		if ( args.length != 2 ) {
			System.out.println ( "please input the file to validate and outputFile" );
			return ;
		}
		
		Scanner scanner = new Scanner ( new File ( args [ 0 ] ));
		PrintStream fout = new PrintStream ( new File ( args [ 1 ])) ;
		while ( scanner.hasNext() ) {
			scanner.next(); scanner.next(); 
			String fileName = scanner.nextLine().trim()+ ".sift" ;
			if ( ( new File (fileName)).exists() ) fout.printf( "0 0 %s\r\n", fileName ) ;
		}
		scanner.close();
		fout.close();
	}

}
